//
//  ViewController.m
//  EvnSelectPro
//
//  Created by zhangbaochuan on 2019/6/14.
//  Copyright © 2019 Geex. All rights reserved.
//
#import "NNEnvSelectViewController.h"

#import "ViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
}

- (IBAction)betnact:(id)sender {
    NNEnvSelectViewController *vc = [[NNEnvSelectViewController alloc] init];
    //    vc.dataDic = dict;
    vc.envSelectAction = ^(NSInteger index, NSString *proxyUrl) {
        NSLog(@"==%d===%@",index, proxyUrl);
        //        if (index <= 1) {
        //            [AppContext sharedInstance].currentEnvironment = index;
        //        }
        //        [AppContext sharedInstance].baseUrltest = proxyUrl;
    };
    
    UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:vc];
    [self presentViewController:nav animated:YES completion:nil];
}

@end
